import requests
from fake_useragent import UserAgent
headers={
    "User-Agent":UserAgent().chrome
}
url="https://www.12306.cn/index/"
proxies={
    "http":"http://60.216.101.46:32868"
}
# 关闭警告
requests.packages.urllib3.disable_warnings()
response=requests.get(url,verify=False,headers=headers)
# 解决乱码
response.encoding="utf-8"
print(response.text)



